package com.maple.myeventbus.core;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by maple on 2020-07-10 15:45
 * E-Mail Address：740917401@qq.com
 */
@Target(ElementType.METHOD)//目标：函数
@Retention(RetentionPolicy.RUNTIME)//注解的生命周期：运行时
public @interface Subscribe {
    //注解类型元素
    ThreadMode threadMode() default ThreadMode.POSTING;//线程模式，默认 POSTING
}
